/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.ip;

import java.util.regex.Pattern;

/**
 *
 * @author hxg
 */
public class IpAddressUtils {
     final private static Pattern ptn=Pattern.compile("((?:(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d))))");
     
     public static boolean isFormatAccept(String ip){
         return ptn.matcher(ip).matches();
     }     

     
}
